home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / os2 / pyth_os2.zip / MAKEFILE.OS2 < prev    next >
Text File  |  1994-06-02  |  3KB  |  87 lines

  1. # Generated by Simon Johnston for OS2.
  2. #    This file is part of the zip file os2_32.zip which enables building
  3. #    of an OS2 32bit python interprester using the EMX 0.8h compiler, 
  4. #    this being a port of GCC 2.5.7 for OS2.
  5. #
  6. #    Any problems can be reported to skj@rb.icl.co.uk
  7. #
  8. ########################################################################
  9. # Copyright 1991, 1992, 1993, 1994 by Stichting Mathematisch Centrum,
  10. # Amsterdam, The Netherlands.
  11. #                         All Rights Reserved
  12. # Permission to use, copy, modify, and distribute this software and its 
  13. # documentation for any purpose and without fee is hereby granted, 
  14. # provided that the above copyright notice appear in all copies and that
  15. # both that copyright notice and this permission notice appear in 
  16. # supporting documentation, and that the names of Stichting Mathematisch
  17. # Centrum or CWI not be used in advertising or publicity pertaining to
  18. # distribution of the software without specific, written prior permission.
  19. # STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
  20. # THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
  21. # FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
  22. # FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  23. # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  24. # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  25. # OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  26. ########################################################################
  27.  
  28. # Toplevel Makefile for Python
  29.  
  30. # Substitutions by configure
  31. srcdir=        .
  32. INSTALL=    e:/emx/bin/install -c
  33.  
  34. # Install prefixes are treated specially by the configure script:
  35. # it only changes these lines if it has received a --prefix=... or
  36. # --exec-prefix-... command line option, or if it has figured out
  37. # a value by searching for python in $PATH.  Note that $(prefix) is
  38. # also used when compiling config.c in Modules to set the default
  39. # module search path, so if you change it later be sure to change it
  40. # there too and rebuild.
  41.  
  42. # Install prefix for architecture-independent files
  43. prefix=        e:/emx
  44.  
  45. # Install prefix for architecture-dependent files
  46. exec_prefix=    ${prefix}
  47.  
  48. # Compiler options passed to subordinate makes
  49. OPT=        -O
  50.  
  51. # Subdirectories where to run make recursively
  52. SUBDIRS=    Parser Objects Python Modules
  53.  
  54. # Other subdirectories
  55. SUBDIRSTOO=    Include Lib Doc Misc Demo readline Grammar
  56.  
  57. # Files and directories to be distributed
  58. DISTFILES=    README ChangeLog $(CONFIGFILES)
  59. DISTDIRS=    $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
  60. DIST=        $(DISTFILES) $(DISTDIRS)
  61.  
  62. # Default target
  63. all:        python.exe
  64.  
  65. # Build the interpreter
  66. python.exe:    Makefile
  67.         for %d in ($(SUBDIRS)) do $(MAKE) -C %d OPT="$(OPT)" all
  68.  
  69. # Install the interpreter
  70. install:    python.exe
  71.         $(INSTALL) python.exe $(exec_prefix)/bin/python.exe
  72.         mkdir $(prefix)/lib/python; 
  73.         cp -r $(srcdir)/Lib/* $(prefix)/lib/python
  74.  
  75. # Sanitation targets -- clean leaves libraries, executables and tags
  76. # files, which clobber removes those as well
  77.  
  78. localclean:
  79.         -rm -f core *~ [@,#]* *.old *.orig *.rej
  80.  
  81. clean:        localclean
  82.         for %d in ($(SUBDIRS)) do $(MAKE) -C %d clean
  83.  
  84.